﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Megaman
{
    public class Sprite : Animation
    {
        public Vector2 _vect;
        public Texture2D texture; 
        public Rectangle rect;
        public Color colorS = Color.White;
        public BoundingBox bx;

        public Sprite()
        { 
            
        }

        public Sprite(Texture2D _texture, Rectangle _rect)
        {

        }
        public Sprite(Texture2D _Texture, Rectangle _posotion, Rectangle _rect, bool _active)
        {
            this.Image = _Texture;
            this.position = _posotion;
            this.sourceRect = _rect;
            this.Active = _active;
        }


        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin();
            spriteBatch.Draw(texture, rect, colorS);
            spriteBatch.End();
        }

        public void DrawAnimation(SpriteBatch spritebatch)
        {
            spritebatch.Begin();
            spritebatch.Draw(Image, position, sourceRect, color);
            spritebatch.End();
        }
    }
}
